package com.yx.fx.webApi.job;

import com.yx.fx.webApi.serviceImpl.AutoAllocateServiceImpl;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import javax.annotation.Resource;

public class AutoAllocateStewardshipManagerJob extends QuartzJobBean {

    @Resource
    private AutoAllocateServiceImpl autoAllocateServiceImpl;
    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("开始自动分配管户经理");
        autoAllocateServiceImpl.allocate();
        System.out.println("自动分配管户经理已结束");
    }
}
